﻿using MediatR;
using RBAC.ErrorCode;

namespace RBAC.Write.Api.Application.Command.User
{
    public class UpdateUserCommand : IRequest<APIResult<int>>
    {
        public long Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }=true;
        /// <summary>
        /// 角色Id
        /// </summary>
        public List<long> RoleId { get; set; }
    }
}
